package com.heima.model.comment.pojos;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lzq
 * @data 2023/5/16 14:39
 */
@Data
@Document("ap_comment")
public class ApComment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 用户id
     */
    private Integer authorId;
    /**
     * 用户名称
     */
    private String authorName;
    /**
     * 评论内容
     */
    private String content;
    /**
     * 创建时间
     */
    private Date createdTime;
    /**
     * 文章id
     */
    private Long entryId;
    //回复数量
    private Integer reply;

    private Integer flag;
    //评论类型
    private Integer type;
    //评论点赞数
    private Integer likes;
    //频道id
    private Integer channelId;
    //头像
    private String image;
    //评论排序
    private Integer ord;
    /**
     * 更新时间
     */
    private Date updatedTime;
}
